<template lang="pug">
  keep-alive
    kalix-table(bizKey="CourseName" title='课程名称表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="CourseNameURL"
    v-bind:bizDialog="courseNameDialog"
    v-bind:btnList="courseNameBtnList"
    v-bind:buttonPermissionPrefix="buttonPermissionPrefix"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="courseNameSearch")
</template>

<script type="text/ecmascript-6">
  import {CourseNameURL, courseNameBtnPermissionPrefix} from '../../config.toml'
  import {courseNameConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-training-coursename',
    components: {KalixTable},
    data() {
      return {
        CourseNameURL: CourseNameURL,
        tableFields: [
          {prop: 'name', label: '课程名称'}
        ],
        courseNameDialog: [
          {id: 'add', dialog: 'courseNameAdd'},
          {id: 'edit', dialog: 'courseNameEdit'},
          {id: 'view', dialog: 'courseNameView'}
        ],
        courseNameBtnList: courseNameConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ],
        buttonPermissionPrefix: courseNameBtnPermissionPrefix
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
